package com.google.code.jgib.growl.responses;

import com.google.code.jgib.growl.IGntpMessage;

public abstract class AbstractGtnpResponse implements IGntpMessage {

	protected boolean ok=true;
	protected String responseString = "GNTP/1.0 ";
	
	@Override
	public boolean isRequest() {
		return false;
	}

	@Override
	public boolean isResponse() {
		return true;
	}

	@Override
	public boolean isOk() {
		return ok;
	}

	@Override
	public boolean isError() {
		return !ok;
	}

	@Override
	public String getRawGntpMessage() {
		return responseString;
	}

}
